<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>权重练习</title>
    <style>
        .nav li {
            color: blue;
        }

        /* 继承的权重为0 */
        .nav .pink {
            color: pink;
            font-weight: 700;
        }
    </style>
</head>

<body>
    <ul class="nav">
        <li class="pink">一二三一二三</li>
        <li>一二三一二三</li>
        <li>一二三一二三</li>
        <li>一二三一二三</li>
        <li>一二三一二三</li>
    </ul>
</body>

</html>